import HomeView from '@/views/HomeView.vue';
import LoginView from '@/views/LoginView.vue';
import RegisterView from '@/views/RegisterView.vue'
import PersonView from '@/views/PersonView.vue'
import ChangePwd from '@/views/ChangePwd.vue'
import FindPwd from '@/views/FindPwd.vue'
import CourseEdit from '@/views/CourseChange/Course-edit.vue';
import CourseSearch from '@/views/CourseSearch.vue';
import MHomeView from '@/views/MHomeView.vue';
import CourseIndex from '@/views/CourseChange/Course-index.vue';
import VideoDetail from'@/views/CourseChange/videoDetail.vue';
import LinkUs from '@/views/LinkUs.vue';
import UpView from'@/views/UpView.vue';
import Vue from 'vue'
import VueRouter from 'vue-router'



Vue.use(VueRouter)

const router = new VueRouter({
  mode: 'history',  
  routes: [
    {
      path: '/videoDetail',
      component: VideoDetail
    },
      {
        path: '/HomeView',
        component: HomeView
        
      },

      {
        path: '/RegisterView',
        component: RegisterView
        
       },
       {
        path: '/MHomeView',
        component: MHomeView
        
       },
       {
        path: '/ChangePwd',
        component: ChangePwd
        
       },
       {
        path: '/FindPwd',
        component: FindPwd
        
       },
       {
        path: '/PersonView',
        component: PersonView
        
       },

       {
        path: '/Course-index',
        component: CourseIndex
        
       },

       {
        path: '/Course-edit',
        name:CourseEdit,
        component: CourseEdit
        
       },

       {
        path: '/CourseSearch',
        component: CourseSearch
        
       },
      
       {
        path: '/UpView',
        name: 'UpView',
        component: UpView
        
       },
       {
        path: '/LinkUs',
        component:LinkUs
      },
       {
        path: '/',
        component: LoginView
        
      },
      {
        path: '/about',
        component: () => import('../views/About.vue') // 假设这是你的关于页面组件
      },
     
     
    ] 
  });

  export default router
 